package com.treasure.mall.biz.service.core.order;

import com.treasure.mall.biz.base.SearchableCrudService;
import com.treasure.mall.biz.entity.order.DeliverBillPO;
import com.treasure.mall.biz.remote.track.dto.ReceiveInfo;
import com.treasure.mall.biz.remote.track.dto.TrackInfoDTO;

import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/12
 */
public interface DeliverService extends SearchableCrudService<DeliverBillPO, String> {
    List<TrackInfoDTO> queryTrack(String id);

    /**
     * 签收
     *
     * @param receiveInfo
     */
    void receive(ReceiveInfo receiveInfo);

    /**
     * 用户确认收货
     *
     * @param subOrderId
     */
    void receiveByUser(String subOrderId);

    List<DeliverBillPO> findByOrder(String subOrderId);


    void receive(DeliverBillPO po);

    List<DeliverBillPO> findToReceive();
}
